#include "stdafx.h"
#include "CrtMemChecker.h"

void CrtMemChecker::Begin() {
	_CrtMemCheckpoint(&s1);
}

void CrtMemChecker::End() {
	_CrtMemCheckpoint(&s2);
	
	if(_CrtMemDifference(&s3, &s1, &s2)) {
		_CrtMemDumpStatistics(&s3);
	}
}